<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'insert'">新增</h3>
	<h3 class="modal-title" ng-if="param.type == 'update'">修改</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>保险名称：
					</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" placeholder="保险名称" ng-model="param.data.name" required/>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>保费收取费率：
					</label>
					<div class="col-sm-4">
						<div class="input-group">
							<input type="text" class="form-control" placeholder="保费计算比率"
							ng-model="param.data.costs" ng-pattern="/^[0-9]*$/" required/>
							<span class="input-group-addon">%</span>
						</div>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>保费限额：
					</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" placeholder="保费限额"
						ng-model="param.data.costsMax" ng-pattern="/^[0-9]*$/" required/>
					</div>
					<p>当实际的保费超过限额时，使用限额作为保费金额。如不需要可以设置为0，单位：元</p>
				</div>
				<!--
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>赔付金额：
					</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" placeholder="赔付金额" ng-model="param.data.payment" ng-pattern="/^\d+(\.\d+)?$/" required/>
					</div>
					<p>单位：元</p>
				</div>
				-->
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>最低票价：
					</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" placeholder="最低票价" ng-model="param.data.priceMin" ng-pattern="/^[0-9]*$/" required/>
					</div>
					<p>保险生效的最低票价。单位：元</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>最高票价：</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" placeholder="最高票价" ng-model="param.data.priceMax" ng-pattern="/^[0-9]*$/" required/>
					</div>
					<p>保险生效的最高票价。单位：元</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>所属模块：
					</label>
					<div class="col-sm-4">
						<ui-select ng-model="dplist.selected" theme="bootstrap">
							<ui-select-match placeholder="所属模块">{{$select.selected.name}}</ui-select-match>
							<ui-select-choices repeat="ads in dplist | propsFilter:{name: $select.search}">
								<span ng-bind-html="ads.name | highlight: $select.search"></span>
							</ui-select-choices>
						</ui-select>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>是否可退：
					</label>
					<div class="col-sm-4">
						<label class="i-switch m-t-xs m-r bg-info">
							<input type="checkbox" name="refundable" ng-model="param.data.refundable" ng-checked="param.data.refundable==true">
							<i></i>
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>是否启用：
					</label>
					<div class="col-sm-4">
						<label class="i-switch m-t-xs m-r bg-info">
							<input type="checkbox" name="enabled" ng-model="param.data.enabled" ng-checked="param.data.enabled==true">
							<i></i>
						</label>
					</div>
				</div>
				<div class="form-group" ng-if="param.data.costs > 0">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>售票机工号：
					</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" placeholder="售票机工号" ng-model="param.data.seller" ng-pattern="/^[a-zA-Z0-9]{1,20}$/" required/>
					</div>
					<p>人为分配给自助售票机的售保险票工号，保险记账必须。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>默认保险：
					</label>
					<div class="col-sm-4">
						<label class="i-switch m-t-xs m-r bg-info">
							<input type="checkbox" name="default" ng-model="param.data.default" ng-checked="param.data.default==true">
							<i></i>
						</label>
					</div>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>